/**
 * 获得当前日期
 */
function ga_getCurrentDate(){
    var curDate = new Date;
    var month = curDate.getMonth()+1 ; 
    var date = curDate.getDate() ;
    if(month<10){
      month="0"+month;
    }
    if(date<10){
      date = "0"+date
    }
    return curDate.getFullYear()+month+date;
} 
/**
*是否为空
*/
function ga_isNull(object){
    var s = object.value;
    if (s == ""){
        return "_error_";
    } 
    var regu = "^[ ]+$"; 
    var re = new RegExp(regu); 
    if(re.test(s)){
       return "_error_";
    }
    return "__ok__";
} 

/**
 * 校验两个参数不能同时为空
 */
function ga_isNullTwoArgs(obj,arg2)
{   
    var arg1=obj.value;
    
    if((arg1 == null || arg1 == '')&&(arg2 == null || arg2 == '')){
    	return '_error_';
    }else{
	    return '__ok__';
    }
}